$(window).bind('resize load', function() {
    $("body").css("zoom", $(window).width() / 750);
    $("body").css("display", "block");
    $("body").css("zoom", $(window).width() / 750);
});
var contextPath = '/weida/';
var api = {
        saveUserByNameAndPhone:contextPath+'api/saveUserByNameAndPhone',
        vote:contextPath+'api/vote',
        list:contextPath+'api/list',
        upload_content:contextPath+'api/upload_content',
        upload:contextPath+'api/upload'
}
function checkPhone(phone){
    if(!(/^1[34578]\d{9}$/.test(phone))){
        alert("手机号码有误，请重填");
        return false;
    }
    return true;
}